package com.gitee.hermer.engine.jars.core.xauth.configuration;

import org.springframework.context.annotation.Conditional;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.ImportResource;
import org.springframework.core.Ordered;

import com.gitee.hermer.engine.jars.core.autoconfigure.annotate.ConditionalOnBean;
import com.gitee.hermer.engine.jars.core.autoconfigure.annotate.ConditionalOnClass;
import com.gitee.hermer.engine.jars.core.domain.EngineConstant;
import com.jc.xauth.exception.authc.XauthAuthenticationException;

@Configuration
@ImportResource({EngineConstant.DUBBO_CLIENT_XAUTH_CONFIG_PROPERTIES_CLASS_PATH})
@ConditionalOnBean(type={EngineConstant.CLASS_NAME_ENGINE_DUBBO_APPLICATION_CONFIG})
public class XAuthDubboAutoConfiguration implements Ordered{

	@Override
	public int getOrder() {
		return HIGHEST_PRECEDENCE+1200;
	}

}
